package com.tcm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 课程组组长关系实体
 * @author Guqier
 * @version 1.0
 * @date 2023/7/18 15:53
 */
@Data
@TableName("ts_leader")
public class Leader {

    //ID
    private Long id;

    //教师ID
    private Long teacherId;

    //学期ID
    private Long termId;

    //课程ID
    private Long bookId;

    //状态，0表示启用，1表示停用
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;//创建时间

    //创建用户
    private Long createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;//更新时间

    //更新用户
    private Long updateUser;

    //备注
    private String memo;


}
